import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import '../src/assets/css/base.css';
import { Collapse, CollapseItem, Image, Lazyload, ImagePreview, Divider, List, Area, Overlay, AddressEdit, AddressList, Icon, Notify, Toast, Uploader, RadioGroup, Radio, NavBar, Loading, Grid, GridItem, Sidebar, SidebarItem, Search, Panel, Dialog, Popup, Picker, Button, Swipe, SwipeItem, Tabbar, TabbarItem, Field, Sku, GoodsAction, GoodsActionIcon, GoodsActionButton, SubmitBar, Card, Tab, Tabs, Form, Tag, Stepper } from 'vant';




Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(Image);
Vue.use(Lazyload, {
    lazyComponent: true
});
Vue.use(ImagePreview);
Vue.use(Divider);
Vue.use(List);
Vue.use(Area);
Vue.use(Overlay);
Vue.use(AddressEdit);
Vue.use(AddressList);
Vue.use(Uploader);
Vue.use(Loading);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Button);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Field);
Vue.use(Sku);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(SubmitBar);
Vue.use(Card);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Form);
Vue.use(Tag);
Vue.use(Stepper);
Vue.use(Popup);
Vue.use(Picker);
Vue.use(Panel);
Vue.use(Dialog);
Vue.use(NavBar);
Vue.use(Icon);



Vue.prototype.$Notify = Notify
Vue.prototype.$Toast = Toast
Vue.prototype.$http = axios // axios改写为Vue的原型属性   使用时 直接用 this.$http直接调用
Vue.config.productionTip = false

// import NavBar from "@/components/common/navbar/NavBar"; //全局组件
Vue.component("nav-bar", NavBar) //引用全局组件

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')